<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%String path = request.getContextPath() ;%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %> 
<!DOCTYPE html>
<html lang="zh-CN" >
<head>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ceshi</title>

<jsp:include page="../../import.jsp" flush="true" />
</head>

<script type="text/javascript">
	var parentTab_s = parent.liger.get("framecenter");
	var test = 12;
	
    function f_addTab_s(tabid, text, url) {
    	parentTab_s.addTabItem({
            tabid: tabid,
            text: text,
            url: url
        });
    };
    $.extend(true, parent.mainApp, {
        parentTab : parentTab_s,
        f_addTab : f_addTab_s
    });
	var grid = null;
	$(function () {
		
	    $("#ligergrid1").ligerGrid({
	    	url: '<%=path%>/system/sysulfilesrec/initList.do',
	    	method : 'get',
	        columns: [
	            { display: '全称', name: 'tabNm', minWidth: 140, enabledSort:true },
	            { display: '简称', name: 'pInstId', minWidth: 140, enabledSort:true},
	            { display: '隶属', name: 'compLvlCdNm', minWidth: 140 , enabledSort:true},
	            { display: '状态', name: 'tInstId', minWidth: 140 , enabledSort:true},
	            { display: '联系人', name: 'fileNm', minWidth: 140 , enabledSort:true},
	            { display: '联系方式', name: 'filePath', minWidth: 140 , enabledSort:true},
	            { display: '联系方式', name: 'datId', minWidth: 140 , enabledSort:true}
	        ],
	        pageSize:10,
	        root:'rows',
	        record:'total',
	        hideLoadButton : true,
	        width: '100%',
	        isScroll: false,
	        checkbox:true,
	        rownumbers:true,
	        onRenderComplete: function () {
	        	//alert("1");
	        	//iframeResize ();
	        }
	    });
	    grid = liger.get("ligergrid1");
	
	    $("#searchBar").ligerForm();
	
	    $("#searchBtn").click(function(event) {
	         var form = new liger.get("searchBar");
	         var data = form.getData();
	         //alert(JSON.stringify(data));
	         for (name in data){
	            grid.setParm(name,data[name]);
	         };
	        grid.reload();
	    });
	
	    $("#pageloading").hide();
	
	});
	
	//测试接口
	function testJieKou(){
		$.ajax({
			type: 'post',
			dataType:'json',
			data:{},
			url: '<%=path%>/system/test/sysUlDatCfgServiceQuery.do',
			success:function(){
				 alert("~~~~~~~~~~~~~~~");
			},
            complete: function(){
            	alert("~~~~~~~~~~~~~~~");
            }
		});
	}
	function testCtrl(){
		$.ajax({
			type: 'post',
			dataType:'json',
			data:{},
			url: '<%=path%>/system/ctrl/ctrlQuery.do',
			success:function(){
				 
			},
            complete: function(){
            	alert("~~~~~~~~~~~~~~~");
            }
		});
	}
</script>
<body class="iframeBody">
<div class="Wrapper">
	<form id="formSet1">
		<div class="fieldset1 tabel_col clearFix">
		<!-- <div class="fieldBox">
			<span id="testBtn" class="sq-button sq-button-hasicon" onclick="testJieKou();"><i class="sqBtnIco_12"></i>点击测试接口</span>
		</div> -->
	            
		<!-- <span id="testBtn" class="sq-button sq-button-hasicon" onclick="testCtrl();"><i class="sqBtnIco_12"></i>点击测试系统配置信息接口</span> -->
            
            <%-- <div class="fieldBox col_100">
                <div class="label">上传测试</div>
                <div class="field">
                    <jsp:include page="sysSysUlFilesRecUpload.jsp" flush="true" >
						<jsp:param name="fileNum" value="2"/>
						<jsp:param name="filePath" value=""/>
					</jsp:include>
                </div>
            </div> --%>
            <div class="fieldBox col_100">
                <div class="label">自定义数量附件上传</div>
                <div class="field">
                    <jsp:include page="sysSysUlFilesRecUpload2.jsp" flush="true" />
                </div>
            </div>
		</div>
	</form>
</div>          
</body>
</html>